package com.mrx.example.mapper;

import java.util.List;

import org.apache.ibatis.annotations.Select;
import org.apache.ibatis.annotations.Update;

import com.mrx.example.model.Dept;

public interface DeptMapper {

    @Select("SELECT * FROM t_dept")
    List<Dept> findAllDepts();

    @Select("SELECT * FROM t_dept WHERE did = #{id}")
    Dept findDeptById(Integer id);

    // TODO 更新 dept
    @Update("UPDATE t_dept SET ")
    Boolean updateDept(Dept dept);
}
